package com.example.demo.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.model.Customer;
import com.example.demo.model.Manager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerDao extends BaseMapper<Customer> {
    Customer doLogin(String name);
    Customer getCustomer(Integer uid);
    List<Customer> findAddress(Integer id);
    Customer fndByUid(Integer uid);
    List<Customer> queryCustomer();
    Page<Customer> pageQueryCustomer(Page page, @Param("name") String name,@Param("sno") String sno);
    Integer updatePasswordByUid(Integer uid, String password);
    Integer updateInfoByUid(Integer uid, Customer customer);
}
